ci: add Go test job (skips when go.mod absent)#89
Merged
couragehong merged 3 commits intomainfrom Apr 27, 2026
Merged
Conversation
Contributor
✅ All tests passed
Full Test Results366 passed, 0 failed, 2 skipped (368 total) — See CI logs
|
Contributor
|
I think there is no risk for adding |
heeyeon01
reviewed
Apr 27, 2026
heeyeon01
approved these changes
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What changed:
pr-tests.yml에run-go-testsjob 을 기존run-tests(Python) 와 parallel 하게 추가. checkout 후go.mod존재 여부를 step 안에서 검사 (detect_go.outputs.has_go) — 있으면actions/setup-go@v5(go-version-file: 'go.mod', cache on) + 다음 4 step:gofmt(unformatted 파일 있으면 fail)go vet ./...go test -race ./...go.mod 없으면 silent skip +
::notice::로 actions UI 에 한 줄 남김.Why: PR test(go): MCP tool registration + shutdown helper coverage #87 에서 추가된 Go 테스트 (
internal/mcp/register_test.go,cmd/rune-mcp/main_test.go) 가 매 PR 마다 자동 실행되도록 + 향후 어떤 Go 코드 변경도 회귀 가드되도록. lint (gofmt + vet) + race detector 까지 포함해 첫 Go CI 부터 적정 수준 가드.Migration 기간이라 Python-only 브랜치도 공존 —
go.mod가 main 에 없는 동안 (PR feat(go): Phase A — MCP boot (handshake + tools/list + 8 stub tools) #86 머지 전) Python PR 이 깨지면 안 되므로 silent-skip 가드.Scope:
gofmt→go vet ./...→go test -race ./...자동 실행 (빌드 + 정적 분석 + 테스트 + 데이터 레이스 검증)go test ./changed-pkgs) 도 미포함 — 현재 테스트 풀 작아서 전체 도는 게 단순